package com.bwie.controller;

import com.bwie.pojo.TbUser;
import com.bwie.service.TbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author:Max
 * @Date: 2024/8/9 19:00
 * @Description
 **/
//@FeignClient(name = "user-server",url ="http://user-service:8080" )
public class UserFeignClient {
    @Autowired
    TbUserService tbUserService;

    @GetMapping("/api/users/{userId}")
    TbUser getUserById(@PathVariable("userId") Integer userId) {
        return null;
    }
}
